約 4,772,329 件
https://w.atwiki.jp/yasrun/pages/139.html
C# や VB から実行 Private Sub GetDataFromDB(ByVal strNo As String) Dim connStr As String = "Server=localhost\\SQLExpress;Database=test_db;uid=yamada;pwd=tarou" Dim sql As String = "SELECT * FROM ITEM_DATA WHERE NO = @NO" Dim ds As New DataSet() Using conn As New SqlConnection(connStr) Using sda As New SqlDataAdapter(sql, conn) sda.SelectCommand.Parameters.AddWithValue("@NO", strNo) Try conn.Open() sda.Fill(ds, "ItemTable") Catch ex As SqlException Console.WriteLine(ex.ToString()) End Try End Using End Using DataGridView1.DataSource = ds.Tables("ItemTable") End Sub
https://w.atwiki.jp/fifam_pc/pages/41.html
合計 - 今日 - 09版購入はこちら EA Japan FIFAM 09 FAQ&パッチ関係 動作環境 体験版 09搭載ライセンスリーグ 公式アップデート関連 09 Update 4 09 Update 3(Update 1&2すべて含んでいますのでこれを当てるだけでいいです。) 09 Update 2 更新内容 09 Update 1 更新内容 FIFAM09用 MOD スクリーンショット 公式09概要ページ 動作環境 対応OS Windows XPsp2 or sp3/Vista sp1 CPU XP Pentium 4 2.6GHz /Vista 2.8GHz もしくは同等AMD Athlon メモリ XP 1GB RAM Vista 2GB ビデオメモリ 128 MB DirectX9.0c互換3Dビデオカード HDD空容量 3,42GB(パッケージユーザー)12.28GB(ダウンロード購入ユーザー) ドライブ 8倍速DVDドライブ(パッケージ版ユーザー) サポートビデオチップ ATI Radeon X700, X800(800pro除く) series ATI Radeon X1xxx series ATI Radeon HD 2xxx series ATI Radeon HD 3xxx series ATI Radeon HD 4xxx series NVIDIA GeForce_6800 NVIDIA GeForce_7xxx NVIDIA GeForce_8xxx NVIDIA GeForce_9xxx and higher NVIDIA GeForce_GTX 260 and 280 サポート対象外のビデオチップでは動作しない可能性が高いです。 また一般的なノートPCの場合、殆どがオンボードビデオの為動きません。 (3Dゲーム対応ノートPC等一部を除く) 体験版 ダウンロード Download 体験版ではリアルFACE(顔)やユニフォームなどは再現していません。 製品版では再現しています。(PC版FIFA09と同じ仕様) 09搭載ライセンスリーグ ; 公式アップデート関連 09版の初期状態はバグがかなり多い状況です。アップデート3は必ず適用してください。 バグの解消の他いろいろとよくなっています。 09 Update 4 ダウンロードURL http //www.fm09.de/publish/en/fm09/downloads/downloads.html?fid=353 cid=48 主にデータベース関連の更新のようです。 更新内容 Full database update including updated generic badges 56 new XXL player pictures 227 new standard player pictures 142 other new pictures Live Ticker update with some bug fixes 09 Update 3(Update 1&2すべて含んでいますのでこれを当てるだけでいいです。) ダウンロードURL http //www.fm09.de/publish/en/fm09/downloads/downloads.html?fid=350 cid=48 更新内容 Loading of Save Games Stops The loading bug is fixed. You will be able to continue your save games after the installation of the update. Live Ticker The number of goals after corners is massively reduced, the ticker is further extended, various text bugs were fixed, the penalty shoot-out was improved (in the old versions saved penalties were not displayed). The consequences of various tactical settings were also improved. The problem of many yellow cards for particular players was solved, the number of free kicks was reduced. The display how many goals a player has scored in the match was fixed. Teams play with less fouls if they are leading with several goals, booked players now play a lot more careful. The total number of goals was slightly increased. Other Problems the loading of staff members from the editor is now working the team picture now shows the whole squad (up to 28 players), the problem with the sometimes mixed up heads will remain because fixing it would destroy the save games merchandise is now working with best rated players etc. training camp review screen now works in multiplayer mode the assistant manager now gives a 20% bonus instead of a 10% bonus to put a player on his preferred position crowd textures now work in FIFA08 stadiums training camps are now available for the reserves youth training camps now work perfectly (button disabled if all teams are in a camp) youth players of AI teams get more contracts several art improvements Germany Reserve teams can now get promoted in CaC mode Videotext mode improved (running matches are highlighted) Penalty goals now marked as penalty goals on post match screens Manager of the Year now works fine (only with new save games) Goal music now selectable for the AI clubs the integration of a goal music now also works for the AI clubs Crash with loading generic stadiums with night environments fixed problem with the grey hair of the 3D player heads on some interface screens fixed Rare end of season crash fixed Correct job titles in the editor (Staff section) Map position Watford fixed Database Update 3 includes a full database update including the winter transfers. Bulgaria is added as a new country with licensed players. For the first time the database includes more than 30,000 players. Player Pictures There are more than 900 new player pictures and more than 60 new XXL pictures. 09 Update 2 更新内容 Live Ticker Live Ticker Referee pictures are displayed (user generated content) Live Ticker Number of assists is displayed after a goal (league matches) Live Ticker Team Status is displayed 3D Match 3D match improvements (Version 3) 3D camera improvements (TV and free camera) Database Improved database (12.12.08) Other features Notepad added Instant Calculation mode now shows the last 5 events New training camp features (more camps, improved calculation of the effects, option to add your own training camps) Player character icons now displayed on the player info screen Several smaller improvements (e.g. youth player scouting, night matches in generic stadiums) Fixed Bugs Various bug fixes 09 Update 1 更新内容 Improved line-up screen more players, talent stars are displayed, and coloured team units match reports for the Live Ticker = after the match, in the stats section, in the line-up section, for the Reserves and for the Youth Teams sound for the Live Ticker, including goal and stadium entry anthems player positions are displayed optionally behind the player names new text elements in Live Ticker better “live” elements in Live Ticker (faster) “Text before Video” option in Live Ticker オウンゴールの演出追加 additional text conditions in Live Ticker (more variation) new badge elements for CaC more varied badges for the computer clubs in CaC mode Reserves promotion bug in CaC fixed there is a new national manager mode without sacking you can immediately own a club right from the start of the game ゲームスピードの次の試合への保存を行うように改善 3D match will make a another big step forward ハイライトキャンセルでの試合結果再計算問題の改善 “Numbers” feature on the weekly progress screen extended マネージャーのポイント制の改善(カップ戦でのポイント改善) taxes, they make the game financially more difficult, Merchandise improved 審判の追加 3Dマッチでレッドカード時のバグ改善 Ups Downsの改善 "big" Live Ticker, more space for text in the high screen resolution カスタマイズしたユニフォームも3Dマッチで表示可能に改善 crowd is now also displayed in stadium areas with no seats smaller art bugs fixed in the stadium editor (e.g. transparency problems with fences) 2008年11月7日現在の最新版データベース採用 Live Ticker Slightly less goals, less injuries Live Ticker Reduced number of goals after corners and free kicks ゴールキーパーのrating(評価)の改善 Staff problem fixed in the editor Fixed transfer fees at the start of the game are only taken from the editor 試合を途中で終了させた場合もそれまでの結果を維持するよう改善 いくつかのバグの改善(スカウトやpersonal life) loss of morale for players after a losing streak implemented 600人の新しい顔写真追加(Italy, Spain, England, Scotland etc.) FIFAM09用 MOD FIFAM09用の各種MODも、その他のFIFAMと同様に、世界中のFIFAMファンサイトより入手可能。 各種Modを1つに統合しアップグレードした「FIFA MANAGER 09 Total Reality Mod」というプロジェクトも進行しているようだ。 Total Reality Mod詳細
https://w.atwiki.jp/r1025/pages/50.html
SQL Server 2005 で SQL Server 構成マネージャを開く際にエラー メッセージ ”WMI プロバイダに接続できません。・・・依存関係サービスまたはグループを起動できませんでした。”が表示される。 SQL Server 構成マネージャを開こうとしたらエラーメッセージが表示されて開かない。。。 マイクロソフトのページに書かれてる「SQL Server 2008 で SQL Server 構成マネージャを開く際にエラー メッセージ "WMI プロバイダに接続できません。権限がないかサーバーにアクセスできません" が表示される」に近い様な気がしてコマンドプロンプトで mofcomp "C \Program Files\Microsoft SQL Server\ 90\Shared\sqlmgmproviderxpsp2up.mof" を実行したけど、「・・・依存関係サービスまたはグループを起動できませんでした。・・・」 そう言えば・・・使わないサービスを停止すると、起動が早くなると勧められ・・・色々停めてから? と言う事で、構成マネージャに関係ありそうなサービスを探し、 「Windows Management Instrumentation」サービスを開始 ・・・エラー 同じ様な依存関係が・・・のメッセージでこのサービスを開始できない。 で、また調べてみるとイベントログサービスが「無効」になってるとダメな様で見てみると「無効」に。 「Event Log」サービスを「自動」にして「開始」 そうすると、 「Windows Management Instrumentation」サービスも開始できた で、SQL Server 構成マネージャを動かしてみると~動いたぁ。 試しに、「Windows Management Instrumentation」サービス停止してから、構成マネージャ起動してみると動いたので、「Event Log」が原因だったみたい。 でも、サービスで「Event Log」を停止にできないのに・・・何かのソフトの影響? トータル: - /今日: - /昨日: -
https://w.atwiki.jp/rulersofnationswiki/pages/36.html
Budget [予算] Prioties Cycle track [自転車道路] Road transport [道路輸送] Rail transport [鉄道輸送] Air transport [航空輸送] Water transport [水上輸送] Access for handicapped [身体障害者の為の通路] Road maintenance [道路整備] Consruction [建設] Inflastructures [] Highway [in miles] [] High-speed train [in miles] [] Intense traffic airport [] Medium traffic airport [] Subway and tram []
https://w.atwiki.jp/hypnosis-eng/pages/101.html
Top Neo-Ericksonian Hypnotherapeutic Process Step 1 Transition Into Trance Step 1 Transition Into Trance ステップ1:トランスへの移行 The first time a hypnotherapuetic trance is used with a client it is appropriate to initiate the transition from an ordinary conversation into trance work with a comment such as, "I would like to do something a bit different for a few minutes that I think might help. O.K.?" Or you might simply say,"Now might be a good time to begin working with hypnosis. O.K.?" クライエントがはじめて催眠療法のトランスを体験する時は、日常の会話からトランスワークへ移るところからはじめるのが適当である。その移行は次のようなコメントをつかって行う。「治療の助けになる思うのですが、ちょっと普通とは違うことを数分の間やってみたいのですが、いいですか?」。あるいはシンプルにこう言うかもしれない。「催眠を使うには、よい頃合いかもしれませんね。やってみますか?」 When your client agrees, you should give a behavioral directive (e.g.,"Move to this chair," "Close your eyes") that you will use on all succeeding occasions as your transition into trance. Exactly what directive you provide will depend upon the seating arrangement in your office and upon what position you believe will be most comfortable for you and your client, but here are a few typical examples クライエントが催眠を用いるのに同意したら、行動についての指示を行おう(例えば、「こっちの椅子に移動して下さい」「眼を閉じてください」)。これらの指示は、トランスへの移行の際には、あらゆる機会に用いることになる。 あなたが与えるのがどんな指示であるかは、正確には、あなたの診察室の椅子の配置や、あなたやクライエントがどんな配置が最も快適に感じると思っているかによって違ってくる。なので、ここでは、典型的な例を示すことにする。 "Why don t you move over to this chair. It is a recliner and you probably will be more comfortable if you can just sit back, close your eyes, and relax. That s right." 「こちらの椅子に移っていただけませんか。リクライニング・シートなので、ただもたれて座れば、多分ずっと快適でいられるでしょう。眼を閉じて、リラックスしてください。いいですよ」 "Just get into a comfortable position there and go ahead and close your eyes as you allow yourself to begin to relax. That s right." 「そこで気持ちのよい姿勢になっていただき、前を向き、眼が閉じるのに任せて、リラックスをはじめて下さい。いいですよ」 "So sit up straight with your hands resting comfortably in your lap and allow your eyes to close as you take a deep breath and feel your body relaxing more and more completely. That s right!" 「そう、背筋を伸ばして座り、手は心地よいように、膝の上に置いてください。深く息を吸って、眼がとじるのに任せてください。そうするとあなたの体は、だんだんとリラックスを感じていきます。いいですよ」 Each of these instructions provides a nice transition cue and initiates a light trance at the same time. The authors almost invariably have their subjects close their eyes right from the beginning of the hypnosis session and then add some commnets about relaxation. This immediately eliminates distracting sights in the enviroment and focuses your client s attention inward upon thoughts and sensations. Usually a light trance quickly develops. これらの指示のひとつひとつが、よい移行への合図となり、そして軽いトランスもそれと同時に始まる。著者たちはほとんどいつも、催眠セッションの最初から被催眠者に眼を閉じてもらい、それからリラックスについての若干のコメントを行う。こうすることで、すぐさま周囲の邪魔になる光景は取り除かれ、クライエントの注意は内側へ向き、彼の思考や感覚に焦点を合わせることになる。たいていは、速やかに軽いトランスが生じる。 Transition comments and instructions should follow the basic format used in these example, but it is not necessary for you to say exactly the same thing each time. What is important is that you ask your client to do same thing each time. This provides a clear experiential signal or cue that something different is about to happen. Once your client has experienced a trance following a specific transitional shift into a new position, whenever that client is instructed to assume the same position in the future he/she will tend to reenter trance again. This phenomenon, probably a result of simple associative learning processes, makes reentry into trance a simpler, more automatic process on succeeding occasions and eventually may even eliminate the necessity for a formal trance induction. 移行のコメントや指示は、これらサンプルで用いられている基本フォーマットに従うべきだが、厳密に毎回同じことを言う必要はない。重要なのは、あなたのクライエントに毎回同じ事をするように求めることだ。こうすることで、明確な経験済みのシグナルや合図が与えられることになる。このシグナルや合図が、何か違ったことがこれから起こることを示すのだ。一度、クライエントがトランスを経験し、続いて特定の移行によって新しい位置へ移ったなら、クライエントがそれと同じ位置にとるように指示されればいつでも、将来にわたって彼/彼女は再びトランスに入るようになるだろう。この現象は、おそらくは単純な連合学習の結果だと思われるが、しかしトランスに再び入ることをずっと簡単にするし、引き続き生じる出来事を自動的なプロセスにし、結局のところ、フォーマルなトランス誘導すら不要にしてしまうかもしれないのである。
https://w.atwiki.jp/adminaix/pages/12.html
SQLの機能分類 1.DDL(Data Definition Language:データ定義言語) 主にデータベースや表の作成などを行なうために定義されている言語。 主に次のような命令分が含まれる。 ・CREATEデータベースや表を作成する ・ALTERデータベースや表の定義を変更する ・DROPデータベースや表を削除する 2.DML(Data Manipulation Language:データ操作言語) 表に格納されるレコードを取り扱う言語。最も利用頻度が高く、DML分を 覚えることがSQLをマスターすることにつながる。 ・SELECTテーブルに格納されたレコードを取得する ・UPDATEテーブルに格納されたレコード内容を更新する ・INSERTテーブルへレコードを追加する ・DELETEテーブルからレコードを削除する 3.DCL(Data Control Language:データ制御言語) データベースの制御や都連座クションを制御するために定義されている言語。 ・COMMITトランザクションを確定する ・ROLLBACKトランザクションを取り消す ・GRANTデータを操作する権限をユーザーに与える ・REVOKEデータを操作する権限をユーザーから取り上げる
https://w.atwiki.jp/mathmania/pages/16.html
SQL SQLには四つの種類の命令語があって、 データ検索 DML データ操作言語 DDL データ定義言語 DCL トランザクション制御 と分けられる。 データ検索 Select文 DML INSERT,UPDATE,DELETE等、データの追加、更新、削除を行う DDL 表の作成、データ構造の定義、アクセシビリティ等の定義を行う。 DMLとDDLの違い DMLは主に内部データに対しての操作。DDLは主に表に対する操作。
https://w.atwiki.jp/wiki8_m2/pages/10.html
9.1 INSERT文使用時のポイント INSERT文で挿入する列名を省略した場合、全ての列に値を指定する必要がある。 9.2 DEFAULT値指定時のDML 列にDEFAULT値が指定してある場合、DMLにてDEFAULTを使用することができる。 (例)INSERT INTO VALUES (2000,DEFAULT,500) 9.3 小数点付NUMBER型 NUMBER(5,2)の場合(整数桁を3桁まで、少数桁を2桁まで格納) ◆123.45 → 問題なく格納 ◆1234.56 → エラー(整数桁が1桁多い) ◆123.456 → 123.46で格納(小数第三位が丸められる) 9.4 TO_DATE関数の引数省略時のデフォルト値 月日を省略した場合 月:当月 日:1日 時間を省略した場合 午前0時0分0秒 9.5 EMP表をCOPY_EMP表にコピーする場合 ○ INSERT INTO COPY_EMP SELECT * FROM EMP × INSERT INTO COPY_EMP AS SELECT * FROM EMP 9.9 DELETE文の基本構文 DELETE [FROM] 表名 ★"FROM"は省略できる 9.10 with check option ■INSERT、UPDATE、DELETE文の中で表の変わりに副問合せを使用した場合に、副問合せのWHERE句に違反する行を生成させない (例) ◆INSERT INSERT INTO view1( SELECT empno, ename, deptno FROM emp WHERE deptno = 10 WITH CHECK OPTION) VALUES (1010, JONY ,20); →エラー ◆UPDATE UPDATE( SELECT empno, ename, deptno FROM emp WHERE deptno = 10 WITH CHECK OPTION) SET deptno = 20 FROM view1; →エラー ◆DELETE DELETE句の場合はWHERE句に存在しない行は元々存在しないので、エラーになりません。 9.11 TRUNCATE TABLE 表から全ての行を削除する DDL文なのでロールバックできない →DELETE文より処理が速い(ロールバック情報を生成しないため) 表が利用していた領域が開放され、他のオブジェクトで再利用可能になる →DELETE文の場合、領域はその表に対する以降のINSERT文で再使用される 削除トリガーを起動しない 外部キー制約(参照整合性制約)の親表を切り捨てることはできない 9.12 トランザクションの終了条件 【トランザクションが終了する場合】 DDL文およびDCL文の実行 DBを更新しているアプリケーション(SQL*Plus、iSQL*Plusなど)の終了 システムクラッシュ 【トランザクションが終了しない場合】 SAVEPOINT文の実行 ROLLBACK TO (SAVEPOINT);の実行 9.14 自動ロールバックされるイベント DBを更新しているアプリケーション(SQL*Plus、iSQL*Plusなど)の終了 システムクラッシュ ★DDL文、DCL文はCOMMITされる 9.17 読み取り一貫性 通常のSELECT文を実行してもロック待ちにはならない →SELECT ~ FOR UPDATE で明示的にロックを確保することもできる 更新中のデータに対しSELECT文を実行すると、UNDOセグメント(ロールバックセグメント)のデータが使われる 1つのSELECT文の中で複数回同じデータを検索しても、SELECT文の開始時にコミットされたデータが保証される
https://w.atwiki.jp/battlesimutrans/pages/43.html
参加者・会社一覧 順番 会社名 参加者 本拠地 1 舞鶴高速鉄道 北駿急行 舞鶴(旧・長門古市) 2 湘賓近江鉄道 do_min 近江(旧・近江舞子) - 越前急行(2期まで参加) 特急京阪 福井(旧・越前花堂) 3 丸森臨海急行電鉄 羽生 丸森(旧・木ノ下) 4 駒ヶ根急行電鉄 タンタルEST 駒ヶ根 5 水色鉄道 mizuiro 中山(旧・中山寺) セット オールインワンセット(全期収録) http //bs.mizutrans.net/files/BS64-6/saveddata/BS64-6.zip 対戦記録 http //www6.atpages.jp/battlesimutrans/BS64-6-Records.xlsx マップ画像 未開発マップ 1期終了時 2期終了時 3期終了時 4期終了時
https://w.atwiki.jp/genephia/pages/16.html
CentOS 各種事前設定 CentOS 6.4 minimalインストール後の作業 とりあえずupdate # yum -y update SELinuxを無効化 # vi /etc/selinux/config SELINUX=enforcing = SELINUX=disabled iptabled無効化 # service iptables stop # chkconfig iptables off X Windowの追加 # yum -y groupinstall "X Window System" "Desktop" "General Purpose Desktop" "Japanese Support" ランレベルを変更 # sed -i "s/id 3 initdefault /id 5 initdefault /g" /etc/inittab OpenStackをインストールする ユーザー作成 # useradd stack # passwd password OpenStackコンポーネント連携パッケージのインストール データベースのバックエンドにはNova、Glance、Keystone、Horizonその他も全てMySQLを利用する またMQにはApache Qpidを利用します。CentOS6.4だとminimalインストールでも予めインストールされている 外部リポジトリの追加 # rpm -ivh http //ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm # cd /etc/yum.repos.d/ # vi openstack-grizzly.repo [epel-openstack-grizzly] name=OpenStack Grizzly Repository for EPEL 6 baseurl=http //repos.fedorapeople.org/repos/openstack/openstack-grizzly/epel-$releasever/ enabled=1 skip_if_unavailable=1 gpgcheck=0 念のためUPDATE # yum update -y MySQL、memcachedのインストール # yum install -y mysql-server memcached MySQLの起動及びパスワード設定 # service mysqld start # chkconfig mysqld on # mysql -uroot -e "set password for root@localhost=password( nova );" # mysql -uroot -pnova -e "set password for root@127.0.0.1=password( nova );" # mysql -uroot -pnova -e "set password for root@ostack01=password( nova );" memcachedの起動と自動起動設定 # service memcached start # chkconfig memcached on Apache Qpidのインストール 認証はオフでインストール # yum install qpid-cpp-server -y # sed -i s/auth=yes/auth=no/ /etc/qpidd.conf # service qpidd restart # chkconfig qpidd on 仮想化関連パッケージ(KVM)のインストール # yum install -y iscsi-initiator-utils qemu-kvm libvirt bridge-utils libvirt-python avahi # service messagebus restart # service avahi-daemon restart # service libvirtd restart Identity Service(Keystone)のインストール Keystoneはユーザ、テナント(プロジェクト)などOpenStackのコンポーネント全ての共通認証・認可を一括管理するコンポーネント Keystoneをインストールすることによって各々のコンポーネントで認証・認可を行う必要がなくなる Keystoneのインストール # yum install -y openstack-keystone Keystoneのコンフィグ バックアップをディレクトリごととる # cp -a /etc/keystone /etc/keystone_bak /etc/keystone/keystone.confの編集 # diff /etc/keystone/keystone.conf /etc/keystone_bak/keystone.conf 4c4 admin_token = ADMIN --- # admin_token = ADMIN 7c7 bind_host = 0.0.0.0 --- # bind_host = 0.0.0.0 10c10 public_port = 5000 --- # public_port = 5000 13c13 admin_port = 35357 --- # admin_port = 35357 21c21 compute_port = 8774 --- # compute_port = 8774 24c24 policy_file = policy.json --- # policy_file = policy.json 42d41 debug = True 46d44 verbose = True 82c80 connection = mysql //keystone password@ostack01/keystone?charset=utf8 --- # connection = sqlite ///keystone.db 85c83 idle_timeout = 200 --- # idle_timeout = 200 138d135 token_format = UUID 227,230c224,225 #password = keystone.auth.plugins.password.Password #token = keystone.auth.plugins.token.Token password = keystone.auth.methods.password.Password token = keystone.auth.methods.token.Token --- password = keystone.auth.plugins.password.Password token = keystone.auth.plugins.token.Token データベースの作成 # MYSQL_PASS_KEYSTONE=password # NOVA_CONTOLLER_HOSTNAME=ostack01 # mysql -uroot -pnova -e "drop database if exists keystone;" # mysql -uroot -pnova -e "create database keystone character set utf8;" # mysql -uroot -pnova -e "grant all privileges on keystone.* to keystone @ % identified by $MYSQL_PASS_KEYSTONE ;" # mysql -uroot -pnova -e "grant all privileges on keystone.* to keystone @ localhost identified by $MYSQL_PASS_KEYSTONE ;" # mysql -uroot -pnova -e "grant all privileges on keystone.* to keystone @ $NOVA_CONTOLLER_HOSTNAME identified by $MYSQL_PASS_KEYSTONE ;" # keystone-manage db_sync プロセスの起動 # chown keystone keystone /var/log/keystone -R # service openstack-keystone restart # chkconfig openstack-keystone on # service openstack-keystone status データの作成 KeystoneにOpenStackで利用するサービス、サービスに対するユーザ、ロールの設定を行う。 ここではサンプルのシェルを利用して作成する。 実際には環境にあった設定を利用したシェルの作成などが必要。 Quantum、Heatを利用する際にはコマンドで追加する手順を記述する。 Swiftの設定がそのままだと入るのでHorizonのメニューで出力されてしまう。 サンプルを利用するがサンプルへ最低限の設定を行う。 サンプルシェルを利用するための環境変数を先に設定する。 # cd /usr/local/src ; cp -a /usr/share/openstack-keystone/sample_data.sh . # export CONTROLLER_HOST=ostack01 # export SERVICE_ENDPOINT=http //$CONTROLLER_HOST 35357/v2.0 # sed -i "s/localhost/$CONTROLLER_HOST/" /usr/local/src/sample_data.sh # export ENABLE_ENDPOINTS=yes # /usr/local/src/sample_data.sh 設定確認 # export OS_SERVICE_TOKEN=ADMIN # export OS_SERVICE_ENDPOINT=http //ostack01 35357/v2.0/ # keystone tenant-list # keystone user-list # keystone role-list # keystone service-list # keystone endpoint-list Image delivery and registration (Glance)のインストール Glanceは仮想マシンのイメージの管理を行うコンポーネント。 仮想マシンの起動イメージをどのバックエンドストレージに配置するか、そして設定したバックエンドストレージのダウンロード、アップロード、削除などを行う。 バックエンドストレージはローカルディスク、S3、Swiftが利用可能。 また、GlusterFSと組み合わせても高可用性を実現出来る。 ここでは、ローカルディスクを利用する。 Glanceのインストール # yum install -y openstack-glance Glanceの設定 元のディレクトリをバックアップ。 # cp -a /etc/glance /etc/glance_back /etc/glance/glance-api.conf, /etc/glance/glance-registry.confを編集 # sql_connection = mysql //glance password@node01/glance?charset=utf8 [filter authtoken] の項目を変更 # admin_tenant_name = service # admin_user = glance # admin_password = glance [paste_deploy] の項目にkeystoneの設定を追加。 flavor = keystone ホスト名を変更 # sed -i "s#127.0.0.1#node01#" /etc/glance/glance-api.conf # sed -i "s#localhost#node01#" /etc/glance/glance-api.conf # sed -i "s#127.0.0.1#node01#" /etc/glance/glance-registry.conf # sed -i "s#localhost#node01#" /etc/glance/glance-registry.conf データベースの作成 # MYSQL_PASS_GLANCE=password # NOVA_CONTOLLER_HOSTNAME=ostack01 # mysql -u root -pnova -e "drop database if exists glance;" # mysql -u root -pnova -e "create database glance character set utf8;" # mysql -u root -pnova -e "grant all privileges on glance.* to glance @ % identified by $MYSQL_PASS_GLANCE ;" # mysql -u root -pnova -e "grant all privileges on glance.* to glance @ localhost identified by $MYSQL_PASS_GLANCE ;" # mysql -u root -pnova -e "grant all privileges on glance.* to glance @ $NOVA_CONTOLLER_HOSTNAME identified by $MYSQL_PASS_GLANCE ;" # glance-manage db_sync プロセスの起動 # chown glance glance /var/log/glance -R # service openstack-glance-api restart # service openstack-glance-registry restart # chkconfig openstack-glance-api on # chkconfig openstack-glance-registry on イメージの登録 独自イメージの作成方法及びoz-installを利用するものについては別途記述する。ここでは予め作成されているfedora16を登録する。 環境変数 # export OS_USERNAME=admin # export OS_PASSWORD=secrete # export OS_TENANT_NAME=demo # export OS_AUTH_URL=http //node01 35357/v2.0/ イメージの置き場所は/opt/virt とする ファイルのダウンロード # mkdir -p /opt/virt/fedora17 ; cd /opt/virt/fedora17 # curl -O http //berrange.fedorapeople.org/images/2012-11-15/f17-x86_64-openstack-sda.qcow2 マシンイメージの登録 # glance image-create --name="f17-jeos" --is-public=true --disk-format=qcow2 --container-format=ovf f17-x86_64-openstack-sda.qcow2 イメージの登録確認 # glance image-list +--------------------------------------+----------+-------------+------------------+-----------+--------+ | ID | Name | Disk Format | Container Format | Size | Status | +--------------------------------------+----------+-------------+------------------+-----------+--------+ | 7ea27a6e-83ff-47f9-a0ae-72a01c43740e | f17-jeos | qcow2 | ovf | 251985920 | active | +--------------------------------------+----------+-------------+------------------+-----------+--------+ # glance image-show 7ea27a6e-83ff-47f9-a0ae-72a01c43740e +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | 1f104b5667768964d5df8c4ad1d7cd27 | | container_format | ovf | | created_at | 2013-05-31T06 12 50 | | deleted | False | | disk_format | qcow2 | | id | 7ea27a6e-83ff-47f9-a0ae-72a01c43740e | | is_public | True | | min_disk | 0 | | min_ram | 0 | | name | f17-jeos | | owner | 8f80e31e75974629b11a7d29d1598765 | | protected | False | | size | 251985920 | | status | active | | updated_at | 2013-05-31T06 12 52 | +------------------+--------------------------------------+